<?php
//joker
declare(strict_types=1);

namespace app\store\controller\market;

use app\store\controller\Controller;
use app\store\service\DermemberProfitBill as ServiceDermemberProfitBill;
use think\facade\Request;

/**
 * 代理利润明细
 * Class User
 * @package app\store\controller
 */
class DermemberProfitBill extends Controller
{

    /**
     * 代理利润明细列表
     * @return json
     */
    public function getList()
    {
        if (!Request::isPost())
            return $this->renderError('请求方式错误');
        //接收参数post
        $param = array(
            'order_no'    => Request::param('order_no/s', ''),
            'limit'       => Request::param('limit/s', 10),
            'page'        => Request::param('page/s', 1),
            'betweenTime' => Request::param('betweenTime/a', []),
            'user_id'     => Request::param('user_id/d', '')
        );
        $data = ServiceDermemberProfitBill::getList($param);
        return $this->renderSuccess($data);
    }
}
